package com.zhuang.controller.utils;

import lombok.Data;

/**
 * @Classname R
 * @Description 设计表现层返回结果的模型类
 * @Date 2021/11/13 13:30
 * @Author by dell
 */

@Data
public class R {
    private Boolean flag;
    private Object data;
    private String msg;

    public R() {
    }

    public R(Boolean flag) {
        this.flag = flag;
    }

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public R(Boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }

    public R(String msg) {
        this.flag = false;
        this.msg = msg;
    }
}
